#include "../core/core.h"
#include <iostream>
using std::cout;
using std::cin;

int main (int argc, char* argv[])
{
	Core core;
	
	string command = "";
	while (command != "exit")
	{
		command = "";
		cout << "\n>";
		cin >> command;
		
		if (command == "add_dir")
		{
			string dir = "";
			cout << "Directiry path:";
			cin >> dir;
			
			core.AddDir (dir);
		}
		if (command == "add_file")
		{
			string dir = "";
			cout << "File path:";
			cin >> dir;
			string file = "";
			cout << "File:";
			cin >> file;
			
			core.AddFile (file, dir);
		}
		if (command == "print")
		{
			cout << "\n" << core.MakeFsString ();
		}
	}
	return 0;
}